package com.flyco.modules.sms.service;

import com.flyco.modules.sms.entity.SmsLotteryItem;
import com.flyco.modules.sms.entity.SmsLotteryHistory;
import com.flyco.modules.sms.entity.SmsLotteryInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 抽奖
 * @Author: flyco
 * @Date:   2020-04-16
 * @Version: V1.0
 */
public interface ISmsLotteryInfoService extends IService<SmsLotteryInfo> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(SmsLotteryInfo smsLotteryInfo, List<SmsLotteryItem> smsLotteryItemList, List<SmsLotteryHistory> smsLotteryHistoryList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(SmsLotteryInfo smsLotteryInfo, List<SmsLotteryItem> smsLotteryItemList, List<SmsLotteryHistory> smsLotteryHistoryList);
	
	/**
	 * 删除一对多
	 */
	public void delMain(Long id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);
	
}
